<?php
	$school_name = empty($school_setting_data) ? NULL : $school_setting_data->school_name;
	$school_addr = empty($school_setting_data) ? NULL : $school_setting_data->school_address;
	$school_tele = empty($school_setting_data) ? NULL : $school_setting_data->school_telephone;
	$school_mob = empty($school_setting_data) ? NULL : $school_setting_data->school_mobile;
	$school_web = empty($school_setting_data) ? NULL : $school_setting_data->school_website;
	$school_email = empty($school_setting_data) ? NULL : $school_setting_data->school_email;
	$school_tname = empty($school_setting_data) ? NULL : $school_setting_data->school_tag_name;
?>

<div class="row">
	<div>
	<div class="panel">School Settings</div>
	<?if(isset($system_message))echo $system_message;
	echo validation_errors('<div class="error">', '</div>');
	?>
		<?echo form_open('admin/school_setting');?>
		
		<div class="input-block">
			<label>School Name</label>
			<input type="text" name="school_name" value="<?=set_value('school_name',$school_name);?>">
		</div>
		<div class="input-block">
			<label>School Address</label>
			<input type="text" name="school_address" value="<?=set_value('school_address',$school_addr);?>">
		</div>
		<div class="input-block">
			<label>School Telephone</label>
			<input type="text" name="school_telephone" value="<?=set_value('school_telephone',$school_tele);?>">
		</div>
		<div class="input-block">
			<label>School Mobile</label>
			<input type="text" name="school_mobile" value="<?=set_value('school_mobile',$school_mob);?>">
		</div>
		<div class="input-block">
			<label>School Website</label>
			<input type="text" name="school_website" value="<?=set_value('school_website',$school_web);?>">
		</div>
		<div>
			<label>School Email Address</label>
			<input type="text" name="school_email" value="<?=set_value('school_email',$school_email);?>">
		</div>
		<div class="input-block">
			<label>School Tag Name <span data-tooltip class="has-tip" title="Tag name is the name you call your students i.e schoolians">?</span></label>
			<input type="text" name="school_tag_name" value="<?=set_value('school_tag_name',$school_tname);?>">
		</div>
		<div class="row">
			<div class="small-9 columns">
			 <?
				echo form_submit('update_school_setting','Update School Setting','class="button tiny"');
				echo form_close();
			?>
			</div>
		</div>
	</div>
</div>
